/*
 * Copyright (c) 2016, FPX and/or its affiliates. All rights reserved.
 * Use, Copy is subject to authorized license.
 */
package com.fpx.open.platform.domain.exception;

/**
 * 多段业务异常
 * @author shiw
 * @date 2016年8月6日
 */
public class MultistageException extends RuntimeException {

	/**
	 * 
	 */
	public MultistageException() {
		super();
	}

	/**
	 * @param message
	 * @param cause
	 * @param enableSuppression
	 * @param writableStackTrace
	 */
	public MultistageException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
		// TODO Auto-generated constructor stub
	}

	/**
	 * @param message
	 * @param cause
	 */
	public MultistageException(String message, Throwable cause) {
		super(message, cause);
		// TODO Auto-generated constructor stub
	}

	/**
	 * @param message
	 */
	public MultistageException(String message) {
		super(message);
	}

	/**
	 * @param cause
	 */
	public MultistageException(Throwable cause) {
		super(cause);
	}

	private static final long serialVersionUID = -7380137727257151474L;

	private String errorCode;
	
	public MultistageException(String errorCode, String message){
		super(message);
		this.errorCode = errorCode;
	}
	
	/**
	 * @return the errorCode
	 */
	public String getErrorCode() {
		return errorCode;
	}

}
